<!DOCTYPE html>
<html>
<head>
    <title>Array Type Example 7</title>
    <script type="text/javascript">
        
        var colors = ["red", "blue", "green"];    //creates an array with three strings
        alert(colors.toString());    //red,blue,green
        alert(colors.valueOf());     //red,blue,green
        alert(colors);               //red,blue,green

    </script>
</head>
<body>

</body>
</html>